package com.soen341.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

//--------------------------------------------------------------------------------------------------------------------------------
/**
 * Model class for Registration History
 */
//--------------------------------------------------------------------------------------------------------------------------------
@Entity
@Table(name = "regHistory")
public class RegHistory implements Serializable
{
	 // Default serial version ID
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="id")
	private Long id;

	@Column(name="regCourseId")
	private String regCourseId;

	@Column(name="regStudentId")
	private Student regStudentId;

	@Column(name="registered")
	private Boolean registered;

	@Column(name="completed")
	private Boolean completed;
	

	// --------------------------------------------------------------------------------------------------------------------------------
	/**
	 * 	Constructor.
	 */
	// --------------------------------------------------------------------------------------------------------------------------------
	public RegHistory()
	{
	}


	// --------------------------------------------------------------------------------------------------------------------------------
	/**
	 * Setters and getters.
	 */
	// --------------------------------------------------------------------------------------------------------------------------------
	public Long getId()
	{
		return id;
	}
	// --------------------------------------------------------------------------------------------------------------------------------
	public void setId(Long id)
	{
		this.id = id;
	}

	// --------------------------------------------------------------------------------------------------------------------------------
	public String getRegCourseId()
	{
		return regCourseId;
	}
	// --------------------------------------------------------------------------------------------------------------------------------
	public void setRegCourseId(String id)
	{
		this.regCourseId = id;
	}


	// --------------------------------------------------------------------------------------------------------------------------------
	public Student getRegStudent()
	{
		return regStudentId;
	}
	// --------------------------------------------------------------------------------------------------------------------------------
	public void setRegStudent(Student student)
	{
		this.regStudentId = student;
	}


	// --------------------------------------------------------------------------------------------------------------------------------
	public Boolean getRegistered()
	{
		return registered;
	}
	// --------------------------------------------------------------------------------------------------------------------------------
	public void setRegistered(Boolean registered)
	{
		this.registered = registered;
	}


	// --------------------------------------------------------------------------------------------------------------------------------
	public Boolean getCompleted()
	{
		return completed;
	}
	// --------------------------------------------------------------------------------------------------------------------------------
	public void setCompleted(Boolean completed)
	{
		this.completed = completed;
	}
}